package com.mdd.front.service.yangyangLeadingEnterprise;

import com.mdd.common.core.PageResult;
import com.mdd.front.validate.common.PageValidate;
import com.mdd.front.validate.yangyangLeadingEnterprise.TAppUserPublicWelfareCreateValidate;
import com.mdd.front.validate.yangyangLeadingEnterprise.TAppUserPublicWelfareSearchValidate;
import com.mdd.front.validate.yangyangLeadingEnterprise.TAppUserPublicWelfareUpdateValidate;
import com.mdd.front.vo.yangyangLeadingEnterprise.TAppUserPublicWelfareDetailVo;
import com.mdd.front.vo.yangyangLeadingEnterprise.TAppUserPublicWelfareListedVo;

/**
 * 用户捐赠公益项目服务接口类
 * @author LikeAdmin
 */
public interface ITAppUserPublicWelfareService {

    /**
     * 用户捐赠公益项目列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<TAppUserPublicWelfareListedVo>
     */
    PageResult<TAppUserPublicWelfareListedVo> list(PageValidate pageValidate, TAppUserPublicWelfareSearchValidate searchValidate);

    /**
     * 用户捐赠公益项目详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return TAppUserPublicWelfareDetailVo
     */
    TAppUserPublicWelfareDetailVo detail(Integer id);

    /**
     * 用户捐赠公益项目新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(TAppUserPublicWelfareCreateValidate createValidate);

    /**
     * 用户捐赠公益项目编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(TAppUserPublicWelfareUpdateValidate updateValidate);

    /**
     * 用户捐赠公益项目删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

    /**
     * 用户捐赠公益项目新增
     * @param createValidate
     * @return
     */
    String addUserPublicWelfare(TAppUserPublicWelfareCreateValidate createValidate);
}
